import {combineReducers} from 'redux';
import counter from './counter';
import {routerReducer} from '../../history';
let reducers = {
    counter,
    //当路径改变的时候，HistoryRouter会向仓库派发@@router/LOCATION_CHANGE动作
    //并且把最新的路径pathname传过来，会由routerReducer计算新的状态，也就是说把路径保存在仓库中
    router:routerReducer
}
const rootReducer = combineReducers(reducers);
export default rootReducer;
